<?php  $this->layout = 'admin'; ?>
<?php if ($admin == 1) { ?>


            <?php $this->start('leftmenu'); ?>
        <div class="well pull-left">
            <ul class="nav nav-list">
                <li><?php echo $this->Html->link('Add User', array('controller' => 'Users', 'action' => 'add')); ?></li>
            </ul>
        </div>
            <?php $this->end(); ?>
            <?php } ?>
<?php echo $this->Form->create('User');?>
	<fieldset>
 		<legend>Add User</legend>
	<?php
		echo $this->Form->input('fullname');
		echo $this->Form->input('username');
		echo $this->Form->input('email');
		echo $this->Form->input('password');
		echo $this->Form->input('confirm password',array('type'=>'password'));
		echo $this->Form->input('admin',array('type'=>'radio','legend'=>false,'options'=>array('User','Admin'),'value' => false));
	?>
	</fieldset>
<?php echo $this->Form->end('Add');?>